Learn R Programming

bivpois (version 1.1)

Contour plot of the bivariate Poisson distribution: Contour plot of the bivariate Poisson distribution

Description

Contour plot of the bivariate Poisson distribution.

Usage

bp.contour(x1, x2 = NULL, lambda)

Value

The contour plot of the bivariate Poisson distribution.

Arguments

x1

Either a numerical vector with the values of the first variable or a matrix with 2 columns containing both variables. In the latter case, x2 must be NULL.

x2

A numerical vector with the values of the second. If x1 is a matrix with 2 columns containing both variables, x2 must be NULL.

lambda

A vector with three numbers, the estimates of the \(\lambda_s\).

Author

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

This is actually a scatter plot with the probability values computed at each pair of points.

See Also

bp.mle

Examples

Run this code
x <- rbp( 300, c(3, 5, 2) )
lambda <- bp.mle(x)$lambda
bp.contour(x, lambda = lambda)

Run the code above in your browser using DataLab